// 治理场景
import http from './httpInstance';

// 设备列表
function getMapDevice(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/governancescene/devicelist',
    data: params,
  });
}

// 地图数据
function getMapData(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/governancescene/mapdata',
    data: params,
  });
}

// 地图数据--详情趋势和列表
function getMapDevicedetail(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/governancescene/devicedetail',
    data: params,
  });
}

// 场景的事件-事件
function getSceneEvents(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/governancescene/varityeventlist',
    data: params,
  });
}

// 场景事件趋势
function getSceneEventsTrend(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/governancescene/varityeventtrend',
    data: params,
  });
}

// 事件算法
function getEventAlgorithm(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/governancescene/algorithms',
    data: params,
  });
}

export {
  getEventAlgorithm,
  getSceneEventsTrend,
  getSceneEvents,
  getMapDevice,
  getMapData,
  getMapDevicedetail,
};
